import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//借记业务止付申请查询
export const apiUrlConfigEntryQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayApplyEntry/search`,
}


//借记业务止付申请明细查询
export const apiUrlConfigEntryDetailQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayApplyEntry/detailSearch`,
}


//借记业务止付申请审核查询
export const apiUrlConfigApproveQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayApplyApprove/search`,
}

//借记业务止付申请审核明细查询
export const apiUrlConfigApproveDetailQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayApplyApprove/detailSearch`,
}

//借记业务止付申请查询
export const apiUrlConfigQueryQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayApplyQuery/search`,
}
//借记业务止付申请明细查询
export const apiUrlConfigQueryQueryDetail = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayApplyQuery/detailSearch`,
}


// 借记业务止付申请明细查询明细
export function stopPayApplyEntryDetail(id,pkgNo) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayApplyEntry/entryDetail?id=${id}&pkgNo=${pkgNo}`,
    method: 'get'
  })
}



// 借记业务止付申请整包止付
export function stopPayApplyEntryStopPayAll(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayApplyEntry/stopPayAll`,
    method: 'post',
    data:data
  })
}

// 借记业务止付申请部分止付
export function stopPayApplyEntryStopPayPart(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayApplyEntry/stopPayPart`,
    method: 'post',
    data:data
  })
}


// 借记业务止付申请审核明细
export function stopPayApplyApproveDetail(id) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayApplyApprove/detail?id=${id}`,
    method: 'get'
  })
}

// 借记业务止付申请审核通过
export function stopPayApplyApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayApplyApprove/approve`,
    method: 'post',
    data:data
  })
}

// 借记业务止付申请审核拒绝
export function stopPayApplyApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayApplyApprove/reject`,
    method: 'post',
    data:data
  })
}


// 借记业务止付申请查询明细
export function stopPayApplyQueryDetail(id) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessStopPay/StopPayApplyQuery/detail?id=${id}`,
    method: 'get'
  })
}
